package com.gdth.bank.model;

import com.gdth.http.method.HttpMethodServlet;

import rx.Observable;

public class WebViewModel {

	/**
	 * 主动营销接口
	 * @param content
	 * @param type
	 * @return
	 */
	public Observable<String> getData(final String content, final int type){
		Observable<String> result = null;
		switch (type) {
			case 1 :
				result = HttpMethodServlet.getInstance().saveZdyxsb(content);
				break;
			case 2 :
				result = HttpMethodServlet.getInstance().findZdys(content);
				break;
			case 3 :
				result = HttpMethodServlet.getInstance().updataSBBL(content);
				break;
			case 4 :
				result = HttpMethodServlet.getInstance().pageZdyxsbList(content);
				break;
			case 5 :
				result = HttpMethodServlet.getInstance().pageCkwhList(content);
				break;
			case 6 :
				result = HttpMethodServlet.getInstance().findCkwh(content);
				break;
			case 7 :
				result = HttpMethodServlet.getInstance().pageCktzList(content);
				break;
			case 8 :
				result = HttpMethodServlet.getInstance().findCktz(content);
				break;
			case 9 :
				result = HttpMethodServlet.getInstance().pageDkghList(content);
				break;
			case 10 :
				result = HttpMethodServlet.getInstance().findDkgh(content);
				break;
			case 11 :
				result = HttpMethodServlet.getInstance().pageDkghAcList(content);
				break;
			case 12 :
				result = HttpMethodServlet.getInstance().pageDkbsList(content);
				break;
			case 13 :
				result = HttpMethodServlet.getInstance().findDkbsdj(content);
				break;
			case 14 :
				result = HttpMethodServlet.getInstance().pageDkbsdjAcList(content);
				break;
			case 15 :
				result = HttpMethodServlet.getInstance().getCkkhjjhz(content);
				break;
			case 16 :
				result = HttpMethodServlet.getInstance().getJjJsHz(content);
				break;
			case 17 :
				result = HttpMethodServlet.getInstance().getJxgzhzmx(content);
				break;
			case 18 :
				result = HttpMethodServlet.getInstance().getDateByZH(content);
				break;
			case 19 :
				result = HttpMethodServlet.getInstance().listBmByYhZh(content);
				break;
			case 20 :
				result = HttpMethodServlet.getInstance().listYgByJg(content);
				break;
			case 21 :
				result = HttpMethodServlet.getInstance().getYwljjhz(content);
				break;
			case 22 :
				result = HttpMethodServlet.getInstance().listYwljjjs(content);
				break;
			case 23 :
				result = HttpMethodServlet.getInstance().getTjDate(content);
				break;
			case 24 :
				result = HttpMethodServlet.getInstance().pageLxList(content);
				break;
			case 25 :
				result = HttpMethodServlet.getInstance().getDkyxjjhz(content);
				break;
			case 26 :
				result = HttpMethodServlet.getInstance().listDkyxjjjs(content);
				break;
			case 27 :
				result = HttpMethodServlet.getInstance().getDkghjjhz(content);
				break;
			case 28 :
				result = HttpMethodServlet.getInstance().getDkghJjJsHz(content);
				break;
			case 29 :
				result = HttpMethodServlet.getInstance().getDkbsndkh(content);
				break;
			case 30 :
				result = HttpMethodServlet.getInstance().listDkbsjjmx(content);
				break;
			case 31 :
				result = HttpMethodServlet.getInstance().getDkbsyqkhhz(content);
				break;
			case 32 :
				result = HttpMethodServlet.getInstance().listDkbsyqkhhzjjs(content);
				break;
			case 33 :
				result = HttpMethodServlet.getInstance().getDkbsyqdfhz(content);
				break;
			case 34 :
				result = HttpMethodServlet.getInstance().listDkbsyqdfMx(content);
				break;
			case 35 :
				result = HttpMethodServlet.getInstance().getGljxgzjjhz(content);
				break;
			case 36 :
				result = HttpMethodServlet.getInstance().getBsyqdk(content);
				break;
			case 37 :
				result = HttpMethodServlet.getInstance().getYqdkbsnddqjs(content);
				break;
			case 38 :
				result = HttpMethodServlet.getInstance().getYqdkbsnddqjsjs(content);
				break;
			case 39 :
				result = HttpMethodServlet.getInstance().getGljxgzjjhzMx(content);
				break;
			case 40 :
				result = HttpMethodServlet.getInstance().dzyhjjkhgzhz(content);
				break;
			case 41 :
				result = HttpMethodServlet.getInstance().listDzyhjjjsMx(content);
				break;
			case 42 :
				result = HttpMethodServlet.getInstance().gljxgzjjhzMx(content);
				break;
			case 43 :
				result = HttpMethodServlet.getInstance().khkkmx(content);
				break;
			case 44 :
				result = HttpMethodServlet.getInstance().yfjxgzmx(content);
				break;
			case 45 :
				result = HttpMethodServlet.getInstance().sgjjmx(content);
				break;
			case 46 :
				result = HttpMethodServlet.getInstance().saveHdtz(content);
				break;
			case 47 :
				result = HttpMethodServlet.getInstance().hdtzList(content);
				break;
			case 48 :
				result = HttpMethodServlet.getInstance().saveQxtz(content);
				break;
			case 49 :
				result = HttpMethodServlet.getInstance().getHdtz(content);
				break;
			case 50 :
				result = HttpMethodServlet.getInstance().getHdmc(content);
				break;
			case 51 :
				result = HttpMethodServlet.getInstance().saveSbkcj(content);
				break;
			case 52 :
				result = HttpMethodServlet.getInstance().pageSbkcjxxList(content);
				break;
		}
		
		return result;
	}
	
	public Observable<String> getData(final String url, final String content){
		return HttpMethodServlet.getInstance().loadUrl(url,content);
	}
}
